<?php
namespace app\erp\validate;
use think\Validate;
class OutlinkCategoryrule extends Validate{
    protected $rule = [
        'category_name' => 'require|unique:outlink_category,category_name^partner_id'
    ];
    
    protected $message = [
        'category_name.require' => '分类名称必须填写',
        'category_name.unique' => '分类名称已存在',
    ];
}